//
//  GJTypeCollectionViewCell.m
//  GJLifeSimple
//
//  Created by MacBook on 16/6/18.
//  Copyright © 2016年 GoodJob. All rights reserved.
//

#import "GJTypeCollectionViewCell.h"
#import "CZAdditions.h"
@implementation GJTypeCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setupUI];
    }

    return self;
}



#pragma mark--设置界面
- (void)setupUI {

    UIImage *image = [UIImage imageNamed:@"bus"];
    UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
    
    [self.contentView addSubview:imageView];
    
     UILabel *label = [UILabel cz_labelWithText:@"物流" fontSize:12 color:[UIColor cz_colorWithHex:0x3a3a3a]];
    [self.contentView addSubview:label];
    
    
    CGSize iconSize = CGSizeMake(80, 80);
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_bottom).offset(20);
        make.centerX.equalTo(self.contentView);
        make.size.mas_equalTo(iconSize);
    }];

[label mas_makeConstraints:^(MASConstraintMaker *make) {
    make.bottom.equalTo(self.contentView);
    make.centerX.equalTo(self.contentView);
}];
    
}
@end
